package com.rocky.project.model.family;

import java.util.Date;

import com.rocky.project.model.admin.Area;
import com.rocky.project.model.admin.User;

/**
 * 
 * @hibernate.joined-subclass  table = "t_person" dynamic-insert = "true" dynamic-update = "true" 
 * @hibernate.joined-subclass-key column="c_person_id"
 * 
 */
public class Person extends User {

	private static final long serialVersionUID = 8268198584779432891L;
	
	private String name;//姓名
	private String sex;//性别
	private String cardnumber;//身份证号	
	private String householder;//户主姓名
	private String householderRelation;//户主关系
	private String address;//现居住地	
	private String residenceType;//户籍类型 Farmer Citizen
	
	private Date birthday;//出生年月	
	private Area area;//所在地区
	private Family family;//所在家庭
	/**
	 * @hibernate.property column = "c_address" type = "string" 
	 */	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @hibernate.property column = "c_birthday" type = "java.util.Date" 
	 */	
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	/**
	 * @hibernate.property column = "c_cardnumber" type = "string" 
	 */	
	public String getCardnumber() {
		return cardnumber;
	}
	public void setCardnumber(String cardnumber) {
		this.cardnumber = cardnumber;
	}
	
	
	/**
	 * @hibernate.many-to-one 
	 * column = "c_family_id" 
	 * cascade="none"	 
	 * not-null = "false"
	 */	
	public Family getFamily() {
		return family;
	}
	public void setFamily(Family family) {
		this.family = family;
	}
	/**
	 * @hibernate.property column = "c_householder" type = "string" 
	 */	
	public String getHouseholder() {
		return householder;
	}
	public void setHouseholder(String householder) {
		this.householder = householder;
	}
	/**
	 * @hibernate.property column = "c_householder_relation" type = "string" 
	 */	
	public String getHouseholderRelation() {
		return householderRelation;
	}
	public void setHouseholderRelation(String householderRelation) {
		this.householderRelation = householderRelation;
	}
	/**
	 * @hibernate.property column = "c_name" type = "string" 
	 */	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @hibernate.property column = "c_residence_type" type = "string" 
	 */	
	public String getResidenceType() {
		return residenceType;
	}
	public void setResidenceType(String residenceType) {
		this.residenceType = residenceType;
	}
	/**
	 * @hibernate.property column = "c_sex" type = "string" 
	 */	
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	/**
	 * @hibernate.many-to-one 
	 * column = "c_area_id" 
	 * cascade="none"	 
	 * not-null = "false"
	 */		
	public Area getArea() {
		return area;
	}
	public void setArea(Area area) {
		this.area = area;
	}

	

}
